/*
 * @Author: Klein
 * @Date: 2021-06-17 11:33:53
 * @Description: file content
 */

const { DataTypes } = require("sequelize");
const sequelize = require("../lib/connection");

const Users = sequelize.define(
  "basic_user",
  {
    name: { type: DataTypes.STRING },
    phone: { type: DataTypes.STRING(11) },
    email: { type: DataTypes.STRING },
    password: { type: DataTypes.STRING },
    birthday: { type: DataTypes.DATEONLY },
    status: { type: DataTypes.INTEGER(1) },
  },
  {
    freezeTableName: true,
    timestamps: false,
  }
);

module.exports = Users;
